package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.CommissionDao;
import com.platform.entity.CommissionEntity;
import com.platform.service.CommissionService;

/**
 * Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2019-02-20 10:14:40
 */
@Service("commissionService")
public class CommissionServiceImpl implements CommissionService {
    @Autowired
    private CommissionDao commissionDao;

    @Override
    public CommissionEntity queryObject(Integer id) {
        return commissionDao.queryObject(id);
    }

    @Override
    public List<CommissionEntity> queryList(Map<String, Object> map) {
        return commissionDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return commissionDao.queryTotal(map);
    }

    @Override
    public int save(CommissionEntity tCommission) {
        return commissionDao.save(tCommission);
    }

    @Override
    public int update(CommissionEntity tCommission) {
        return commissionDao.update(tCommission);
    }

    @Override
    public int delete(Integer id) {
        return commissionDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return commissionDao.deleteBatch(ids);
    }
}
